SSSBOOL = {
    FALSE = 0,
    TRUE = 1,
}


---操作类型
SSSActionType = {
    ACTION_UNKNOWN = 0,
    ACTION_SORTCARDS = 1,   ----理牌
    ACTION_FANPAI   = 2,    ----发牌
    ACTION_BALANCE  = 3,
}

SSSWinType = {
    WIN_TYPE_UNKNOWN = 0,
    WIN_TYPE_WIN = 1,
    WIN_TYPE_LOSE = 2,
}

---特殊牌型
SSSCardTypeSpecial = {
    CARD_TYPE_UNKNOWN = 0,
    CARD_TYPE_SANTONGHUA = 1,         ---三同花(三敦水都是同一种花色牌)
    CARD_TYPE_SANSHUNZI = 2,          ---三顺子(三敦水都是顺子牌)
    CARD_TYPE_LIUDUIBAN = 3,          ---六对半(6个对子+任意一张杂牌)
    CARD_TYPE_WUDUISANTIAO = 4,       ---五对三条(5个对子+三张相同的牌型（三张牌冲头）)
    CARD_TYPE_SITAOSANTIAO = 5,       ---四套三条：指的是4套相同的三张牌+任意一张杂牌
    CARD_TYPE_CHOUYISE  = 6,          ---凑一色：十三牌都是方块、红桃或者黑桃、梅花（指的在杂牌无任何特殊牌型出现的情况下）
    CARD_TYPE_QUANXIAO  = 7,          ---全小：十三张牌数字都为2—8
    CARD_TYPE_QUANDA = 8,             ---全大：十三张牌数字都为8—A
    CARD_TYPE_SANFENTIANXIA = 9,      ---三分天下：13张牌出现3副炸弹加一张杂牌（或称三套四梅、铁支）
    CARD_TYPE_SANTONGHUASHUN  = 10,   ---三同花顺：头墩，中墩，底墩都为同花顺
    CARD_TYPE_SHIERHUANGZU = 11,      ---十二皇族：12张都是10以上的牌
    CARD_TYPE_YITIAOLONG = 12,        ---一条龙：从1（A）－－－13（k）
    CARD_TYPE_ZHIZUNQINGLONG = 13,    ---至尊清龙：清一色的从1（A）－－－13（k）
}

SSSSpecialWaterNum = {
    [tostring(SSSCardTypeSpecial.CARD_TYPE_ZHIZUNQINGLONG)] = 108,      ---至尊清龙 108 水
    [tostring(SSSCardTypeSpecial.CARD_TYPE_YITIAOLONG)] = 36,           ---一条龙 36 水
    [tostring(SSSCardTypeSpecial.CARD_TYPE_SHIERHUANGZU)] = 24,         ---十二皇族 24 水
    [tostring(SSSCardTypeSpecial.CARD_TYPE_SANTONGHUASHUN)] = 18,       ---三同花顺 18 水
    [tostring(SSSCardTypeSpecial.CARD_TYPE_SANFENTIANXIA)] = 16,        ---三分天下 16 水
    [tostring(SSSCardTypeSpecial.CARD_TYPE_QUANDA)] = 10,               ---全大 10 水
    [tostring(SSSCardTypeSpecial.CARD_TYPE_QUANXIAO)] = 10,             ---全小 10 水
    [tostring(SSSCardTypeSpecial.CARD_TYPE_CHOUYISE)] = 10,             ---凑一色 10 水
    [tostring(SSSCardTypeSpecial.CARD_TYPE_SITAOSANTIAO)] = 6,          ---四套三条 6 水
    [tostring(SSSCardTypeSpecial.CARD_TYPE_WUDUISANTIAO)] = 5,          ---五对三条 5 水
    [tostring(SSSCardTypeSpecial.CARD_TYPE_LIUDUIBAN)] = 3,             ---六对半   3 水
    [tostring(SSSCardTypeSpecial.CARD_TYPE_SANSHUNZI)] = 3,             ---三顺子   3 水
    [tostring(SSSCardTypeSpecial.CARD_TYPE_SANTONGHUA)] = 3,            ---三同花   3 水
}

SSSCardType = {
    CARD_TYPE_UNKNOWN = 0,
    CARD_TYPE_WULONG = 1,
    CARD_TYPE_YIDUI = 2,
    CARD_TYPE_LIANGDUI = 3,
    CARD_TYPE_SANTIAO = 4,
    CARD_TYPE_SHUNZI = 5,
    CARD_TYPE_TONGHUA = 6,
    CARD_TYPE_HULU = 7,
    CARD_TYPE_TIEZHI = 8,
    CARD_TYPE_TONGHUASHUN = 9,
    CARD_TYPE_WUTONG = 10,
}

SSSWaterNum = {
    CARD_TYPE_CHONGSAN = {3,3,3},
    CARD_TYPE_HULU = {0, 2, 0},
    CARD_TYPE_TIEZHI = {0, 7, 4},
    CARD_TYPE_TONGHUASHUN = {0,9,5},
    CARD_TYPE_WUTONG = {0, 11, 6},
}

SSSTableType = {
    TABLE_TYPE_UNKNOWN = 0,
    TABLE_TYPE_ZUANSI = 1,     ---系统钻石桌
    TABLE_TYPE_FANGKA = 2,      ---自建房卡桌
    TABLE_TYPE_COIN = 3,        ---友豆场
    TABLE_TYPE_ZJZUANSI = 4,    ---自建钻石桌
    TABLE_TYPE_ZHENREN = 5,
    TABLE_TYPE_TRAIN = 6,       ---训练场
}

SSSTableEnter = {
    TABLE_ENTER_PRIVATE = 1,      ----不允许不知道房号的玩家加入
    TABLE_ENTER_PUBLIC = 2,       ----允许任何人加入
}

SSSTableEnum = {
    TABLE_MIN_PLAYER_NUM = 2, -----游戏开始最小人数
    TABLE_MAX_PLAYER_NUM = 7,   
}

SSSPlayerNum = {
    TABLE_PLAYER_NUM_FOUR = 4,   ----四人桌
    TABLE_PLAYER_NUM_SEVEN = 7,  ----七人桌
}

SSSTableState = {
    TABLE_STATE_UNKNOWN = 100,
    TABLE_STATE_GAME_START = 101,                -----创建好牌桌可以开始游戏
    TABLE_STATE_WAIT_PLAYER_SITDOWN = 102,       -----等待玩家坐下
    TABLE_STATE_WAIT_ALL_READY = 103,            -----等待所有玩家准备
    TABLE_STATE_START_GAME = 104,                -----房卡场桌主开始游戏
    TABLE_STATE_WAIT_START_GAME = 105,           -----房卡场等待桌主开始游戏
    TABLE_STATE_ONE_GAME_START = 106,            -----一局游戏开始
    TABLE_STATE_ONE_WAIT_GAME_START = 107,       
    TABLE_STATE_DEAL_ALL_CARDS = 108,            -----发牌
    TABLE_STATE_WAIT_DEAL_ALL_CARDS_END = 109,   -----等待发牌结束
    TABLE_STATE_SORT_CARDS = 110,                -----理牌
    TABLE_STATE_WAIT_SORT_CARDS = 111,           -----等待玩理牌完成
    TABLE_STATE_ONE_GAME_END = 112,              -----一局游戏结束，结算
    TABLE_STATE_WAIT_ONE_GAME_END = 113,         -----等待一局游戏结束
    TABLE_STATE_ONE_GAME_END_AFTER = 114,
}

--座位状态
SSSSeatState = {
	SEAT_STATE_UNKNOW = 0,
	SEAT_STATE_NO_PLAYER = 1,           --没有玩家
	SEAT_STATE_WAIT_READY = 2,          --等待准备
	SEAT_STATE_WAIT_START = 3,          --等待开局
	SEAT_STATE_PLAYING  = 4,            --正在游戏中
    SEAT_STATE_SORTCARDS = 5,           --理牌中
    SEAT_STATE_SORTCARDS_OVER = 6,      --理牌完成
	SEAT_STATE_TUOGUAN = 7,            ---托管状态
	SEAT_STATE_DISCONNECTED = 8,       ---断线状态
    SEAT_STATE_WAIT_NEXT_GAME = 9,     ---等待下一局游戏开始
}


--玩家站起原因
SSSEStandupReason = {
	STANDUP_REASON_UNKNOW = 0,
	STANDUP_REASON_ONSTANDUP = 1,                       --玩家主动站起
	STANDUP_REASON_READYTIMEOUT_STANDUP = 2,            --准备超时站起
	STANDUP_REASON_DELETE_TABLE = 3,                    --桌子被删除,玩家站起
	STANDUP_REASON_HAVE_NOT_ENOUGH_DIAMOND = 4,         --友豆低于房间设定值
	STANDUP_REASON_HAVE_NOT_ENOUGH_DIAMOND_POCHAN = 5,  ---友豆低于'破产'设定值
	STANDUP_REASON_NITENOUGH_ROOM_COIN = 6,             ---低于房间最小值
	STANDUP_REASON_PLAYEROFFLINE = 7,                   -----玩家断线游戏结束
	STANDUP_REASON_DISCONNECTED_NO_READY = 8, 	        ----玩家准备时断线判断为离开房间
	STANDUP_REASON_GM_DELETETABLE = 9, 	                ----gm删除桌子
	STANDUP_REASON_DISCONNECTED = 10,                   ---断线重连
    STANDUP_REASON_CANCEL_TABLE = 11,                   ---解散桌子
    STANDUP_REASON_EMPTY_TABLE  = 12,
    STANDUP_REASON_TABLE_END = 13,
    STANDUP_REASON_CLEAR_PLAYER_STATE = 14,             ---清除状态
    STANDUP_REASON_TABLE_MATCH  = 15,					---匹配模式玩家离开,没准备的玩家离桌
    STANDUP_REASON_TABLE_CHUANZHUO = 16,                ---清楚串桌                      
}

SSSCARDNUM = 13
SSSGameName = "sss"
SSSLAMPCOLOR = {
    ORANGE = "<color=#00ff00>%s</c>",
    RED = "<color=#ff0000>%s</c>",
    YELLOW = "<color=#ffff00>%s</c>",
    BLUE = "<color=#0000ff>%s</c>",
    GOLD = "<color=#ffd700>%s</c>",
    GREEN = "<color=#008b00>%s</c>",
}

SSSShootAllTimes = 2        ---全垒打 *2 水





